(ns ura.config
  (:require [clojure.edn]
            [taoensso.telemere :as t]
            [aero.core :refer [read-config]]
            )
  (:use tupelo.core)
  )

(defn loadConfig [configFile]
  (if (nil? configFile)
    (def cf "config.edn")
    (def cf configFile)
    )
  (println "use configfile: " cf)
  (def cfg (read-config cf)) ;;(clojure.edn/read-string (slurp cf)))
  (t/log! ["get config: " cfg])
  (def dm (:dm cfg))
  )
